package cn.net.gemai.springboot_yml.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
public class Test_Value {
    @Value("${name}")
    private String name;
    @Value("${age}")
    private int age;
    @Value("${isMan}")
    private boolean isMan;
    @Value("${str1}")
    private String str1;
    @Value("${str2}")
    private String str2;
}
